A Specification Coverage Metric Based on Dynamic Invariant Detection

نویسندگان

  • Robert McGregor
  • William Thomasson
  • David Coppit
چکیده

Traditional coverage metrics measure the ability of test cases to fully exercise the source code. The assumption is that fully covered code will better test the correct behavior of the software. Unfortunately, there is no guarantee that the software will meet its specification. In this paper, we present a new coverage metric which measures the ability of the test cases to fully exercise the specification of the software. However, a specification is not required. Our approach allows the developer to iteratively develop and elaborate the test suite and the specification together. Using a dynamic invariant detector, we infer a specification from the execution of the software for the given test cases. If the test cases are inadequate, the specification will be inaccurate, and if the code is incorrect, the inferred specification will be incorrect. The tester can then refine the test suite or repair the software to improve the resulting specification. To evaluate this approach we applied it to three Java classes and their associated test suites. For each of the three classes, our method revealed incorrect and missing invariants in our specification, which implied limitations in our test suite. We were subsequently able to improve the test suite (and specification) by adding appropriate test cases. After applying our method several times, all incorrect invariants were removed, and our final test suite was more complete than the original.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Specification Coverage Metric Using a Dynamic Invariant Detector

Traditional coverage metrics measure the ability of test cases to fully exercise the source code. The assumption is that fully covered code will better test the correct behavior of the software. Unfortunately, there is no guarantee that the software will meet its specification. In this paper, we present a new coverage metric which measures the ability of the test cases to fully exercise the spe...

متن کامل

On a Metric on Translation Invariant Spaces

In this paper we de ne a metric on the collection of all translation invarinat spaces on a locally compact abelian group and we study some properties of the metric space.

متن کامل

A New Structural Coverage Criterion for Dynamic Detection of Program Invariants

Dynamic detection of program invariants is emerging as an important research area with many challenging problems. Generating suitable test cases that support accurate detection of program invariants is crucial to the dynamic approach for invariant detection. In this paper, we propose a new structural coverage criterion called Invariant-coverage criterion for dynamic detection of program invaria...

متن کامل

Coupled coincidence point theorems for maps under a new invariant set in ordered cone metric spaces

 In this paper, we prove some coupled coincidence point theorems for mappings satisfying generalized contractive conditions under a new invariant set in ordered cone metric spaces. In fact, we obtain sufficient conditions for existence of coupled coincidence points in the setting of cone metric spaces. Some examples are provided to verify the effectiveness and applicability of our results.

متن کامل

Solving the Dynamic Job Shop Scheduling Problem using Bottleneck and Intelligent Agents based on Genetic Algorithm

The problem of Dynamic Job Shop (DJS) scheduling is one of the most complex problems of machine scheduling. This problem is one of NP-Hard problems for solving which numerous heuristic and metaheuristic methods have so far been presented. Genetic Algorithms (GA) are one of these methods which are successfully applied to these problems. In these approaches, of course, better quality of solutions...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2004